package com.hsq.ndmall.wx.feign.catalog;

import com.hsq.ndmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "product-service")
public interface ProductFeign {

    @GetMapping("/product/category/list")
    R currentCategoryList(@RequestParam Map<String, Object> params);


    @GetMapping("/product/category/info/{id}")
    R currentInfo(@PathVariable("id") Integer id);
}
